<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.app.info.AInfo" %>
<%@ page import="jt.classic.system.ISystem" %>
<%@ page import="jt.classic.system.user.IUser" %>
<%@ page import="java.util.List" %>
<%
   String context = jt.classic.system.ISystem.getContextPath();
   
   IUser user = ISystem.getSessionUser(request);
   
   AInfo info = (AInfo)request.getAttribute("info");
   
   List annexs = (List)info.iannexs();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><%=info.ititle()%></title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<form name="form1" method="post" action="">
<input type="hidden" name="ifuserid" value="<%=user.id()%>">
<input type="hidden" name="ifusername" value="<%=user.iname()%>">
<input type="hidden" name="ifdate" value="<%=DateTrimmer.getYMDHMS()%>">
<h1>信息预览</h1>
<br>
<p align="center"><font size="<%=info.ititlesize()%>" color="<%=info.ititlecolor()%>" face="<%=info.ititlefont()%>"><%=info.ititle()%></font></p>
<table align="center" width="90%" class="tab" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50%">&nbsp;</td>
    <td align="right">发布人 <%=info.iuser().iname()%>&nbsp;所属部门 <%=(user.igroup() != null)?user.igroup().iflumelabel(null):""%>
    <a href="javascript:void(0);" onclick="javascript:void(-1);" onclick="javascript:doPrint();">打印</a>
    </td>
  </tr>
  <tr>
    <td colspan="2"><div style="padding-left:10px;padding-right:10px;">
    <%=info.icontent()%>
    </div></td>
  </tr>
</table>
<%if(annexs != null && !annexs.isEmpty()){
%>
<table align="center" width="90%">
<%
    for(int i=0;i<annexs.size();i++){
        String[] temp = (String[])annexs.get(i);
  %>
  <tr><td><%=temp[1]%></td></tr>
  <%      
    }
  %>
  </table>
  <%    
   }
   %>
</form>
</body>
</html>